#include "Component.h"
#include "GameObject.h"
namespace ManchyGL
{
	void Component::SetGameObject(GameObject* gameObject)
	{
		if (NULL == gameObject)
			return;
		_gameObject = gameObject;
	}

	GameObject* Component::GetGameObject()
	{
		return _gameObject;
	}

	Transform* Component::GetTransform()
	{
		if (NULL == _gameObject)
			return NULL;
		return _gameObject->GetTransform();
	}
}